/**
 * Created by Andste on 2018/5/13.
 * styles
 */

.grade-editor {
  display: flex;
  position: relative;
  width: 100%;
  min-width: 1000px;
  height: 450px;
  padding: 10px;
  background-color: #fff;
  font-size: 16px;
  color: #666;

  .column {
    position: relative;
    box-sizing: border-box;
    height: 100%;
  }
  .inner-column {
    margin-right: 20px;
    height: calc(100% - 35px);
    overflow: auto;
    border: 1px solid #F7F7F7;
  }
  .search-column {
    position: relative;
    top: 0;
    left: 0;
    width: calc(100% - 20px);
    z-index: 10;
    background-color: #fff;
  }
  .input-search {
    width: 100%;
    height: 35px;
    box-sizing: border-box;
    padding: 5px 12px;
    transition: all .2s ease;
    outline: none;
    border: 1px solid #dcdfe6;
    &:hover {
      border-color: #c0c4cc
    }
    &:focus {
      border-color: #409eff
    }
  }
  .icon-search {
    position: absolute;
    top: 0;
    right: 5px;
    display: block;
    width: 30px;
    height: 30px;
    background: url("") no-repeat center;
    background-size: 16px;
  }
  .add-column {
    display: block;
    height: 50px;
    line-height: 50px;
    text-indent: 10px;
    font-size: 16px;
    color: #428bca;
    text-decoration: none;
    &:hover {
      background: #f9f9f9;
      color: #2a6496;
    }
    .icon-add {
      position: relative;
      display: inline-block;
      margin-right: 5px;
      top: 1px;
      width: 16px;
      height: 16px;
      background: url("") no-repeat center;
      background-size: 100%;
    }
  }
  .item {
    display: flex;
    position: relative;
    line-height: 45px;
    cursor: pointer;
    &:hover {
      background-color: #E3E4E8;
      .btns-item { display: block }
    }
    &.active {
      background-color: #f0f0f0;
      .btns-item { background-color: #f0f0f0 }
    }
    &.hover {
      background-color: #E3E4E8;
    }
  }
  .text-item {
    text-indent: 10px
  }
  .btns-item {
    position: absolute;
    right: 0;
    display: none;
    height: 45px;
    line-height: 40px;
    cursor: auto;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #E3E4E8;
    .inner-btns {
      height: 30px;
      line-height: 30px;
      margin-top: (45px - 30px) / 2;
      background-color: #fff;
      padding-left: 10px;
    }
    a {
      margin-right: 10px;
      font-size: 14px;
    }
  }
}
